import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("schedule_job_log",{schema:"nest-mall" } )
@Index("job_id",["jobId",])
export class ScheduleJobLog {

    @PrimaryGeneratedColumn({
        type:"bigint", 
        name:"log_id"
        })
    logId:string;
        

    @Column("bigint",{ 
        nullable:false,
        name:"job_id"
        })
    jobId:string;
        

    @Column("varchar",{ 
        nullable:true,
        length:200,
        name:"bean_name"
        })
    beanName:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"method_name"
        })
    methodName:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:2000,
        name:"params"
        })
    params:string | null;
        

    @Column("tinyint",{ 
        nullable:false,
        name:"status"
        })
    status:number;
        

    @Column("varchar",{ 
        nullable:true,
        length:2000,
        name:"error"
        })
    error:string | null;
        

    @Column("int",{ 
        nullable:false,
        name:"times"
        })
    times:number;
        

    @Column("datetime",{ 
        nullable:true,
        name:"create_time"
        })
    createTime:Date | null;
        
}
